package com.zhz.mall.portal.contant;

import com.zhz.mall.common.api.IErrorCode;
import lombok.AllArgsConstructor;

/**
 * @author zhouhengzhe
 * @date 2023/2/4
 */
@AllArgsConstructor
public enum PayErrorCode implements IErrorCode {

    PAY_TYPE_PARAM_ERROR(2001, "支付类型参数错误！"),
    ORDER_ERROR(2002, "订单异常！无法支付");

    private final long code;
    private final String message;

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
